Ext.define('MvcDemo.view.user.Home', {
    alternateClassName:'userHomeView',
    xtype:'userHomeView',
    extend:'Ext.form.Panel',
    requires: [
        'Ext.form.FieldSet'
    ],
    config:{
        title:'用户登录',
        scrollable: {
            direction: 'vertical',
            directionLock: true,
            indicators: false
        },
        items:[
            {
                xtype:'titlebar',
                docked: 'top',
                title: 'Getting Started'
            },
            {
                xtype:'fieldset',
                iconCls: 'home',
                defaults: {
                    labelWidth: '40%'
                },
                items:[
                    {
                        xtype:'button',
                        action:'btnLogin',
                        text:'登录',
                        ui: 'action'
                    },
                    {
                        xtype:'button',
                        action:'btnReg',
                        text:'注册',
                        ui: 'action'
                    }
                ]
            }
        ]
    }
});